
#ifndef _APPLICATION_H
#define _APPLICATION_H
#include "stm32f2xx.h"
#include "rtthread.h"

#define EOT_STATUS_UNCONNECTED	0
#define EOT_STATUS_CONNECTED		1

typedef struct gPara
{
    char EOTid[16];
		char EOTcmd[32];
	
    u16 EOTpressure;
    u8 EOTstatus;
		u8 pressure_alarm_status;	//是否处于报警状态
		u8 battery_alarm_status;	//是否处于报警状态
	
		u8 exhaust_status;		//排风状态
		u8 main_status;				//与主机通信状态
		u8 eot_connect_status;				//与列尾通信状态
		u8 eot_byte;
} gPara;

typedef struct gTimer
{
	rt_timer_t battery_alarm_timer;
	rt_timer_t pressure_alarm_timer;
	rt_timer_t exhaust_timer;
	rt_timer_t main_timer;
} gTimer;

#endif